package com.hbsi.iodemo3;

import javax.imageio.IIOException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

/**
 * @author 程奕红
 * @version 1.0
 */
public class TestObject {
    public static void main(String[] args) throws IOException {
        Student s1=new Student(1001,"Tom",18);//对象序列化 对象反序列化
        ObjectOutputStream objectOutputStream=new ObjectOutputStream(new FileOutputStream("e:\\story.txt"));
        objectOutputStream();
        objectOutputStream.close();
    }

    private static void objectOutputStream() {
    }
}
